﻿#region Using

using System;
using System.Collections.Generic;
using System.Collections.Specialized;

#endregion

namespace BlogEngine.Core
{
    /// <summary>
    /// An interface implemented by the classes that can be rated.
    /// <remarks>
    /// To implement this interface means that the class can have ratings applied to it
    /// </remarks>
    /// </summary>
    public interface IRateable
    {
        /// <summary>
        /// Gets or sets the rating
        /// </summary>
        float Rating { get; }

        /// <summary>
        /// Gets the number of raters 
        /// </summary>
        int Raters { get; }

        /// <summary>
        /// Adds a rating to the item.
        /// </summary>
        void Rate(int rating);

    }
}